void client_puts_file(int sockfd,TLV *tlv, char *pathname ){
    printf("开始上传文件\n");
    tlv->tag = CMD_PUTS;
    printf("tlv.length = %d, tlv.tag = %d, tlv.data = %s\n",tlv->length,tlv->tag,tlv->data);
    //    char *pathname = "/home/sfh/C++65_linux/ThreadPool/client/65Linuxday1702git2.ev4";
    //    recvfile(sockfd,pathname);
    send(sockfd,tlv,sizeof(tlv->length)+sizeof(tlv->tag)+tlv->length,MSG_NOSIGNAL);//传输指令

    char md5[256];
    hash_compute(md5,pathname);
    tlv->length = strlen(md5);
    memcpy(tlv->data,md5,tlv->length);
    send(sockfd,tlv,sizeof(tlv->length)+sizeof(tlv->tag)+tlv->length,MSG_NOSIGNAL);

    int is_intact;
    recv(sockfd,&is_intact,sizeof(int),0);
    if(is_intact == 0){
        printf("开始上传文件\n");
        transfile(sockfd,pathname);
    }
    else{
        printf("存在相同文件，数据库已插入表项，此次未进入transfile函数，执行了秒传\n");
    }

}
